package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 013.商品评价表
 * </p>
 *
 * @author admin
 * @since 2020-09-22
 */
@Data
@TableName(value = "biz_rating", autoResultMap = true)
public class BizRating implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 商户类型 1=个人
2=果农
3=分拣厂
4=农资厂
5=包装物厂
6=采购商
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 店铺Id
     */
    @TableField("ShopId")
    private Long shopId;

    /**
     * 商品SpuId
     */
    @TableField("SpuId")
    private Long spuId;

    /**
     * 订单Id
     */
    @TableField("OrderId")
    private Long orderId;

    /**
     * 买家晒图
     */
    @TableField(value = "Images", typeHandler = JacksonTypeHandler.class)
    private List<String> images;

    /**
     * 品质评分
     */
    @TableField("QualityRating")
    private Integer qualityRating;

    /**
     * 发货速度评分
     */
    @TableField("SpeedRating")
    private Integer speedRating;

    /**
     * 物流评分
     */
    @TableField("LogisticsRating")
    private Integer logisticsRating;

    /**
     * 评论
     */
    @TableField("SkuComment")
    private String skuComment;

    /**
     * 删除标记
     */
    @TableField("DelFlag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 子订单Id
     */
    @TableField("SubOrderId")
    private Long subOrderId;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 买家类型
     */
    @TableField("BuyerType")
    private Integer buyerType;

}
